package com.anyou.mall.goo.specs.domain;

import com.anyou.mall.goo.specs.vo.SelectSpecsValueVo;
import com.anyou.mall.goo.specs.vo.ShopNameVo;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 规格管理对象 spe_specs
 *
 * @author ruoyi
 * @date 2022-03-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "规格管理")
@TableName(value = "spe_specs")
public class SpeSpecs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("规格编号")
    private Long specsId;

    @ApiModelProperty("商家编号")
    @Excel(name = "商家编号")
    private  Long storeId;

    /** 汽配商编号 */
    @ApiModelProperty("汽配商编号")
    @Excel(name = "汽配商编号")
    private Long carPartsShopId;

    /** 规格名称 */
    @ApiModelProperty("规格名称")
    @Excel(name = "规格名称")
    private String specsName;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic(delval = "2" , value = "0")
    private String delFlag;


    /** 查询店铺信息 */
    @ApiModelProperty("店铺名称")
    @TableField(exist=false)
    private String shopName;

    /** 查询规格值 */
    @ApiModelProperty("规格值集合")
    @TableField(exist=false)
    private List<SpeSpecsValue> specsValueList;

    /** 查询规格值 */
    @ApiModelProperty("规格值")
    @TableField(exist=false)
    private String specsValue;

    @ApiModelProperty("商品规格编号")
    @TableField(exist=false)
    private Long goodsSpecsId;

}
